﻿using System;
using System.Data.Entity;
using System.Data.Entity.ModelConfiguration;
using Abp.Application.Services.Dto;
using Abp.Extensions;
using LeadThing.AbpZeroTemplate.WorkFlow_Runs;
using LeadThing.AbpZeroTemplate.EntityFramework;

namespace LeadThing.AbpZeroTemplate.WorkFlow_Runs.EntityMapper.WorkFlow_Runs
{

    /// <summary>
    /// 流程实例的数据配置文件
    /// </summary>
    public class WorkFlow_RunCfg : EntityTypeConfiguration<WorkFlow_Run>
    {
        /// <summary>
        ///  构造方法[默认链接字符串< see cref = "AbpZeroTemplateDbContext" /> ]
        /// </summary>
        public WorkFlow_RunCfg()
        {
            ToTable("WorkFlow_Run", AbpZeroTemplateConsts.SchemaName.Basic);


            // 客户端IP
            Property(a => a.IP).HasMaxLength(20);
            // 当前节点ID
            Property(a => a.CurrentProessID).HasMaxLength(50);
            // 当前办理人
            Property(a => a.CurrentUserID).HasMaxLength(50);
            // 当前状态名称
            Property(a => a.CurrentStatusName).HasMaxLength(50);
            // 资源ID
            Property(a => a.ResID).HasMaxLength(50);
        }
    }
}